package src.Fifteen;

public class EmergencyThread implements Runnable{
    @Override
    public void run() {
        for (int i = 0; i < 6; i++) {
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            System.out.println("紧急情况："+i+"号车出发");
        }
    }
}
